package com.pr.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.UUID;

/**
 * 同步模型
 * @author bufanqi
 * @date 2021-10-26 10:00
 **/
@Getter
@Setter
@Schema(description="创建模型")
public class CreateModel {
    /**
     * 名称
     */
    @Schema(required = true,description="名称")
    @NotNull(message = "名称不能为空")
    private String name;
    /**
     * 编码
     */
    @Schema(required = true,description="编码")
    @NotNull(message = "编码不能为空")
    private String code;
    /**
     * 文件ID
     */
    @Schema(required = true,description="文件ID")
    @NotNull(message = "文件ID不能为空")
    private UUID fileId;
    /**
     * 封面ID
     */
    private UUID coverId;
}
